﻿using AbpApplication.AppServices;
using AbpApplication.InPut;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace AbpWebapi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class BaseServiceController : ControllerBase
    {

        private readonly IBaseService _baseService;

        public BaseServiceController(IBaseService baseService)
        {
            _baseService = baseService;
        }

        [HttpPost]
        public async Task<ApiResponse> Create_Boxs(InPut_BaseService input)=>await _baseService.Create_Boxs(input);
        [HttpPost]
        public async Task<ApiResponse> Update_Box(InPut_BaseService2 input)=>await _baseService.Update_Box(input);
        [HttpPost]
        public async Task<ApiResponse> Create_Warehouses(InPut_BaseService3 input) => await _baseService.Create_Warehouses(input);
        [HttpPost]
        public async Task<ApiResponsePage> GetList_WarehouseLine(InPut_BaseService4 inPut) =>await  _baseService.GetList_WarehouseLine(inPut);
        [HttpPost]
        public void test() =>_baseService.test();
        [HttpPost]
        public async Task<ApiResponse> Update_WarehouseLines(InPut_BaseService5 inPut)=>await _baseService.Update_WarehouseLines(inPut);
        [HttpPost]
        public async Task<ApiResponsePage> GetList_Boxs(InPut_BaseService6 inPut) => await _baseService.GetList_Boxs(inPut);
    }
}
